import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: resolve => require(['../components/index'], resolve)
    },
    {
      path: '/detail/:id',
      component: resolve => require(['../components/detail'], resolve)
    },
    {
      path: '/brother',
      component: resolve => require(['../components/brother'], resolve)
    },
    {
      path: '/tsdata',
      component: resolve => require(['../components/tsdata'], resolve)
    },
    {
      path: '*',
      component: resolve => require(['../components/unfind'], resolve)
    }
  ]
})
